import request from '@/utils/request'

// 查询提现审核列表
export function listWalletAudit(query) {
  return request({
    url: '/pay/walletAudit/list',
    method: 'get',
    params: query
  })
}

export function listUserWalletAudit(query) {
  return request({
    url: '/pay/walletAudit/userList',
    method: 'get',
    params: query
  })
}

// 查询提现审核详细
export function getWalletAudit(id) {
  return request({
    url: '/pay/walletAudit/' + id,
    method: 'get'
  })
}

// 新增提现审核
export function addWalletAudit(data) {
  return request({
    url: '/pay/walletAudit',
    method: 'post',
    data: data
  })
}

// 修改提现审核
export function updateWalletAudit(data) {
  return request({
    url: '/pay/walletAudit',
    method: 'put',
    data: data
  })
}

// 删除提现审核
export function delWalletAudit(id) {
  return request({
    url: '/pay/walletAudit/' + id,
    method: 'delete'
  })
}
//审核提现
export function updateWalletAuditExamine(data) {
  return request({
    url: '/pay/walletAudit/updateWalletAuditExamine',
    method: 'post',
    data: data
  })
}


//提交审核
export function submitWalletAuditExamine(data) {
  return request({
    url: '/pay/walletAudit/submitWalletAuditExamine',
    method: 'post',
    data: data
  })
}
